package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberGrowthAction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级管理-评价-分享-点赞-晒单-收藏赠送表
 * @author : 
 * @email : 
 * @since : 2020-04-10 11:00:00
 * @version : v1.0.0
 */
@Mapper
public interface  MememberGrowthActionMapper {

    long insert(MememberGrowthAction mememberGrowthAction);

    long delete(Long id);

    long update(MememberGrowthAction mememberGrowthAction);

    MememberGrowthAction queryByPrimaryKey(Long id);

    List<MememberGrowthAction> query(MememberGrowthAction mememberGrowthAction);

    List<MememberGrowthAction> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberGrowthAction") MememberGrowthAction mememberGrowthAction);

    long queryPageCount(MememberGrowthAction mememberGrowthAction);

    MememberGrowthAction getRrowthRuleById(Long id);

    Long getGiveGrowthValById(Long id);

    MememberGrowthAction queryGrowthActionByGrowthIdAndObtainMode(@Param("obtainMode") String obtainMode,@Param("incrementId") Long incrementId);
}